package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SBattlePlayerRank extends Object implements IMessageBase
    {
        public var rank:int;
        public const _type:int = 47;
        public static var _regist:SBattlePlayerRank = new SBattlePlayerRank(true);

        public function SBattlePlayerRank(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SBattlePlayerRank();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.rank);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.rank = param1.readInt();
            
        }

    }
}
